import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/src/widgets/framework.dart';

import '../../model/activity/activity_model.dart';
import '../../net/response/activity/actvity_recommend_list_data.dart';

class ActivityRecommendListViewModel extends BaseListViewModel<ActvityRecommendListData>{
  ActivityRecommendListViewModel(BuildContext context) : super(context);

  var model = ActivityModel();
  var searchInput = "";
  @override
  Future<List<ActvityRecommendListData>> requestListData() async {
    return await model.getActivityList(activityNameLike: searchInput,page: page,rows: pageLength);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh();
  }
}